package com.xuxin.baby.database;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Index;

/**
 * Created by xu_xin
 * Created on 2020/11/16 0016
 * 搜索历史
 */
@Entity
public class SearchBean {
    @Id(autoincrement = true)//设置自增长
    private Long id;
    @Index(unique = true)//设置唯一性
    private String title;//标题

    @Generated(hash = 370027790)
    public SearchBean(Long id, String title) {
        this.id = id;
        this.title = title;
    }

    @Generated(hash = 562045751)
    public SearchBean() {
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTitle() {
        return this.title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
}